View on GitHub
View on GitHub

FluxBase

Provides core types and functionality to implement applications using Flux architecture with .NET.

FluxBase / Dispatcher / Use<TAction>(IMiddleware<TAction>) Method

Configures the given middleware as the last handler in the pipeline.

This is a public method.

public object Use<TAction>(IMiddleware<TAction> middleware)

Generic Parameters

Parameters

Returns object

Returns the ID of the configured middleware.

Exceptions

Remarks

The middleware pipeline is called in the same order they are configured, configuring a middleware handler multiple times will not reorder it. The respective instance will be called multiple times.

See Also